﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%>
{if sdcms.is_login}
{dim userdata:userdata=sdcms.userinfo}
<ul class="nav nav-pills nav-top">
<li class="user-settings-btn">
    <div class="btn-group user-btn popover-marker">
        <button type="button" class="btn btn-default btn-sm" onclick="window.location.href = '/user';">{userdata(3)}</button>
        <button type="button" class="btn btn-default btn-sm dropdown-toggle user-dropdown-toggle" data-toggle="dropdown">
            <span class="caret"></span>
            <span class="sr-only">Toggle Dropdown</span>
        </button>
        <ul class="dropdown-menu pull-right" role="menu">
            <li><a href="/user" title=""><i class="icon icon-user"></i> 用户账户</a></li>
            <li class="divider"></li>
                <li class="prodicon"><a href="{webroot}user/login.asp?act=out&gourl={url}" title=""><i class="icon icon-sign-out"></i> 注销</a></li>         </ul>
    </div>
</li>
 </ul>
<ul class="nav nav-pills nav-main" id="mainMenu">
            <li><a href="/list.asp?classid=1"><i class="icon icon-search"></i> 浏览 BIM 对象</a></li>
            <li><a href="/list.asp?classid=6" target="_blank"><i class="icon icon-envelope-o"></i> 联系</a></li>
          </ul>
{else}
      <ul class="nav nav-pills nav-main" id="mainMenu">
            <li><a href="/list.asp?classid=1"><i class="icon icon-search"></i> 浏览 BIM 对象</a></li>
            <li><a href="/list.asp?classid=6" target="_blank"><i class="icon icon-envelope-o"></i> 联系</a></li>
            <li><a href="/user/login.asp?url={url}"><i class="icon icon-user"></i> 登录 / 注册</a></li>
          </ul>
{/if}